package hua.dao;

import hua.pojo.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {

    @Select("select * from mybatiss.user")
    List<User> getUser();


    @Select("select * from user where id = #{id}")
//    User getUserById(@Param("id") int id,@Param("name") String name);//若方法存在多个参数，所有参数前面必须加上@Param("id")注解
    User getUserById(int id);

}
